<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" th:href="@{/lay/lib/layui-v2.5.5/css/layui.css}" media="all">
    <link rel="stylesheet" th:href="@{/lay/css/public.css}" media="all">
    <link rel="stylesheet" th:href="@{/css/icon-font.css}">
    <style>
        body {
            background-color: #ffffff;
        }
    </style>
</head>
<body  >
<div class="layui-form layuimini-form">

    <div class="layui-form-item">
        <label class="layui-form-label required">出生日期</label>
        <div class="layui-input-block">
            <input type="text" name="birthday"  class="layui-input" id="begin" placeholder="yyyy-MM-dd">
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label required">入学时间</label>
        <div class="layui-input-block">
            <input type="text" name="goSchool"  class="layui-input" id="createTime" placeholder="yyyy-MM-dd">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label required">班级</label>
        <div id="message1" class="layui-input-block">
            <input type="text" id="className" name="className"  th:onblur="exitClass()" lay-verify="required" lay-reqtext="班级名称不能为空" placeholder="请输入班级名称"
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label required">学生姓名</label>
        <div id="name" class="layui-input-block">
            <input type="text" id="stuName" name="stuName"  th:onblur="" lay-verify="required"
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label required">身份证</label>
        <div id="card" class="layui-input-block">
            <input  type="text" id="idcard" name="idcard" th:onblur="autofillSex()"  lay-verify="required"
                    class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label required">性别</label>
        <div id="sex" class="layui-input-block">

            <input readonly="readonly" type="text" id="gender" name="gender" th:onblur=""  lay-verify="required"
                    class="layui-input">
          <tip>*不可编辑,如有错误请先录入，再进行修改*</tip>
        </div>
    </div>





    <div class="layui-form-item">
        <label class="layui-form-label required">家庭住址</label>
        <div id="home" class="layui-input-block">
            <input type="text" id="address" name="address"  th:onblur="" lay-verify="required"
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label required">手机号</label>
        <div id="Iphone" class="layui-input-block">
            <input type="text" id="phone" name="phone"  th:onblur="checkPhone()" lay-verify="required"
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label required">qq账号</label>
        <div id="Iqq" class="layui-input-block">
            <input type="text" id="qq" name="qq"  th:onblur="checkQQ()" lay-verify="required"
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label required">邮箱</label>
        <div id="Iemail" class="layui-input-block">
            <input type="text" id="email" name="email" th:onblur="checkEmail()" lay-verify="required"
                   class="layui-input">
        </div>
    </div>




    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-normal" lay-submit lay-filter="saveBtn">确认保存</button>
        </div>
    </div>
</div>
</div>
<script th:src="@{/lay/lib/jquery-3.4.1/jquery-3.4.1.min.js}"></script>
<script th:src="@{/lay/lib/layui-v2.5.5/layui.js}" charset="utf-8"></script>
<script th:src="@{/js/management/student/addCode.js}"></script>
<script th:src="@{/js/management/student/function.js}"></script>


</body>
</html>